import { Link, Outlet } from "react-router-dom";

export default function Index() {
  return (
    <div>
      <h1>首页</h1>
      <div>
        <Link to="/home">首页详情</Link>
      </div>

      <div>
        <Link to="/about">网站详情</Link>
      </div>
      <div>
        <Link to="/userInfo">用户信息</Link>
      </div>

      <div>
        {/* 在此处渲染子路由页面 */}
        <Outlet />
      </div>
    </div>
  );
}
